package com.cloudy.core.common.ip;

/**
 * 获取thrift服务器IP
 *
 * Created by cloudy.xie on 16/11/10.
 */
public interface IAddressIp {
    String getServerIp() throws Exception;

    void reset();

    //当IP变更时,将会调用reset方法
    static interface IpRestCalllBack{
        public void rest(String newIp);
    }
}